package Select_Structure;
/**if选择第一种
 * if(布尔表达式){
 *     //代码
 * }
 * */
public class if_demo {
    public static void main(String[] args) {
        int totalQuantity = 10;
        double totalAmount = 105;

        if (totalQuantity > 10 && totalAmount > 100) {
            totalAmount *= 0.9;
            System.out.println(totalAmount);
        }
        System.out.println(totalAmount);
    }
}


